package learn.cwebsitelearn.chapter8;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/26
 * @VERSION 1.0
 * @DESC
 */
public class Main {
    public static void main(String[] args) {
        //split(12);
        int i, s = 0 ;

        int a[ ] = { 10 , 20 , 30 , 40 , 50 , 60 , 70 , 80 , 90 };

        for ( i = 0 ; i < a.length ; i ++ )

            if ( a[i]%3 == 0 )  s += a[i] ;

        System.out.println("s="+s);

    }
    public static int split(int number) {
        if (number > 1) {
            if (number % 2 != 0)
                System.out.print(split((number + 1) / 2));//line1 (3) 2
            System.out.print(split(number / 2));//line2 (1) 6 (2) 3 (4) 1  line1执行完继续执行 line2 - 则需要打印 1
        } //12136
        return number;
    }
}
